home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / win / oswdemo.zip / OSWDMO10.ZIP / CHAP-52.TXT < prev    next >
Text File  |  1994-10-09  |  19KB  |  372 lines

  1.  
  2. 5.2    Naming Icons, Symbols, and Pointers
  3. This section describes outSPOKEN's features for 
  4. labeling graphical images such as icons, symbols, and 
  5. pointer shapes (Sections 3.1, 3.2). This is all done 
  6. through two outSPOKEN dialog boxes, Rename Graphic and 
  7. Edit Graphics Dictionary. To change the name of a 
  8. graphic, place the pointer on the graphic and bring up 
  9. the Rename Graphic dialog (CTRL-KPD PLUS). Type the new 
  10. name and press oENTER, or click on the OK button. This 
  11. saves the new name to a file on the hard disk called a 
  12. graphics dictionary. It is important to note that 
  13. naming a graphic names all graphics that have that 
  14. image, not merely the individual graphic being named. 
  15. Thus naming a single icon automatically names all 
  16. identical icons.
  17. A graphics dictionary is a file which contains one or 
  18. more graphic images (or bitmaps), along with a user-
  19. defined name for each graphic. Each dictionary has the 
  20. file extension ".DIC" and is located in the outSPOKEN 
  21. directory (usually C:\OSW). Each graphic and its 
  22. associated name are called an "entry" in that graphics 
  23. dictionary. Unless otherwise specified, all new graphic 
  24. names are stored in the default dictionary, 
  25. "DEFAULT.DIC". If you are a beginner, there is no need 
  26. to be overly concerned about how graphics dictionaries 
  27. operate. It is enough to know that these files contain 
  28. the images and names of the graphics you define in the 
  29. Rename Graphic dialog. For more information about 
  30. dictionaries, advanced users may wish to read the final 
  31. sub-section of this chapter, "More About Graphics 
  32. Dictionaries." 
  33. Whenever outSPOKEN encounters a graphic, it searches 
  34. its graphics dictionaries to find a name for that 
  35. bitmap. If an entry is found, outSPOKEN speaks the 
  36. assigned name when announcing that graphic. If none is 
  37. found, outSPOKEN assigns the graphic a unique number, 
  38. such as "Icon 7" or "Icon 9." This numbering scheme 
  39. serves to distinguish one unnamed graphic from another. 
  40. outSPOKEN numbers icons separately from symbols 
  41. (Section 3.2). This means that "Icon 7" is not the same 
  42. image as "Symbol 7." These numbers are not saved to 
  43. disk, but are regenerated each time outSPOKEN is 
  44. launched. This means that an unnamed graphic's number 
  45. will probably change each time you restart outSPOKEN.
  46. The pointer takes on many forms, depending on the state 
  47. of the system and the item under the pointer. As the 
  48. pointer changes shape, outSPOKEN announces the new 
  49. cursor. Most of the standard shapes have been pre-
  50. defined in an existing dictionary. As with graphics, 
  51. any unrecognized pointer is given a unique number. For 
  52. more information about renaming pointers, see the sub-
  53. section called "Editing Graphics Dictionaries."
  54. 5.2.1    The Rename Graphic Dialog
  55. An icon or symbol can be renamed at any time by placing 
  56. the pointer on it and opening the Rename Graphic dialog 
  57. (CTRL-KPD PLUS). In this dialog, an edit box contains 
  58. the current graphic name in highlighted text, and OK is 
  59. the default button. Thus, typing a new name replaces 
  60. the old one, and pressing oENTER selects the OK button. 
  61. The new name is saved, and the Rename Graphic dialog 
  62. closes, returning the pointer to the graphic which has 
  63. just been renamed. 
  64. In addition to the previously mentioned edit box and OK 
  65. button, there are a number of other important features 
  66. of this dialog. To the right of the edit box is an 
  67. image of the graphic itself. This serves to positively 
  68. identify the graphic being renamed. Below the edit box 
  69. is a check box labeled Ignore Graphic. If this box is 
  70. checked, outSPOKEN will not speak the displayed graphic 
  71. when reading. To the right of this check box is a combo 
  72. box showing the currently selected graphics dictionary. 
  73. This setting determines the dictionary to which the 
  74. displayed graphic will be saved. In the lower-right 
  75. corner of the dialog is the Edit Dictionary button, 
  76. which brings up a sub-dialog from which any graphic in 
  77. the current dictionary can be renamed. To the left of 
  78. the Edit Dictionary button are the OK and Cancel 
  79. buttons.
  80. When the Rename Graphic dialog opens, the edit box 
  81. contains the graphic's current name. The name is 
  82. highlighted, so any new text typed from the keyboard 
  83. immediately replaces the old name. This is a normal 
  84. edit box, and standard editing keys, such as RIGHT-
  85. ARROW, LEFT-ARROW, BACKSPACE, and DELETE, can be used to 
  86. correct any errors made while typing. A graphic name 
  87. can be up to five-hundred and twelve characters long, 
  88. but extremely long names may not entirely show in the 
  89. edit box. 
  90. The Ignore Graphic check box, located below the edit 
  91. box, is used to omit specific graphics when reading 
  92. with outSPOKEN. To turn off an icon or symbol, check 
  93. this control in the Rename Graphic dialog when viewing 
  94. that graphic. In other words, to turn off a graphic, 
  95. place the pointer on the graphic to be turned off, 
  96. invoke the Rename Graphic dialog (CTRL-KPD PLUS), select 
  97. the Ignore Graphic check box, and press OK. When this 
  98. control is checked, outSPOKEN ignores the graphic, and 
  99. neither navigates to it nor speaks it. From within the 
  100. Rename Graphic dialog, this control can be toggled with 
  101. the hotkey combination ALT-I. This setting can be 
  102. overridden by turning on the "Verbose Graphics" option 
  103. in the outSPOKEN Graphics Preferences sub-dialog 
  104. (Section 5.1.3).
  105. A graphics dictionary is a file which contains a group 
  106. of graphics and their names (Section 5.2.3). The combo 
  107. box to the right of the Ignore Graphic check box 
  108. displays the name of the graphics dictionary where the 
  109. current graphic is stored. A status line above the 
  110. combo box also indicates the graphic's dictionary. If 
  111. the graphic has not yet been saved, the dictionary name 
  112. displayed in the combo box is "DEFAULT.DIC", and the 
  113. status line reports that the graphic has not yet been 
  114. stored. This means that pressing OK will store the 
  115. newly named graphic in the dictionary "DEFAULT.DIC". 
  116. Another dictionary can be selected by clicking in the 
  117. combo box and choosing another name from the list. If 
  118. another dictionary is selected, the graphic is filed in 
  119. that dictionary when OK is pressed.
  120. Along the bottom of the Rename Graphic dialog are three 
  121. buttons labeled OK, Cancel, and Edit Dictionary. The OK 
  122. button accepts all the settings in the dialog, saves 
  123. them to the selected dictionary, and closes the dialog. 
  124. Pressing the hotkey combination ALT-O from within the 
  125. Rename Graphic dialog also selects this button. The 
  126. Cancel button, which can alternately be selected with 
  127. the hotkey combination ALT-C, closes the dialog, but 
  128. makes no changes to any dictionary. This button 
  129. discards any changes made while in the dialog and 
  130. returns to the location of the original graphic. 
  131. Selecting Close from the Control menu is equivalent to 
  132. pressing the OK button. The Edit Dictionary button, 
  133. which produces a sub-dialog, is explained in detail in 
  134. the following section. This button can be selected with 
  135. the hotkey combination ALT-E.
  136. Please note that the Cancel button only 
  137. discards changes made in the Rename Graphic 
  138. dialog. If changes are made in the Edit 
  139. Dictionary sub-dialog, pressing the Cancel 
  140. button in the Rename Graphic dialog will not 
  141. undo those changes.
  142. 5.2.2    Editing Graphics Dictionaries
  143. The Edit Graphics Dictionary sub-dialog is opened by 
  144. selecting the Edit Dictionary button at the bottom-
  145. right corner of the Rename Graphic dialog (CTRL-KPD 
  146. PLUS). The dictionary to be edited is selected with the 
  147. combo box in the Rename Graphic dialog. The sub-dialog 
  148. allows the user to view all of a dictionary's entries, 
  149. as well as any graphics that have not yet been named. 
  150. From within this sub-dialog, entries can be browsed and 
  151. specific names can be searched for. From the Rename 
  152. Graphic dialog, a shortcut to this sub-dialog is 
  153. provided by the hotkey combination Alt-E.
  154. This sub-dialog contains six significant controls. Two 
  155. of these, the edit box and the Ignore Graphic check 
  156. box, are similar to those found in the Rename Graphic 
  157. dialog (Section 5.2.1). Along the bottom of the sub-
  158. dialog are four buttons labeled Previous, Next, Find, 
  159. and Done. A line of text at the top of the dialog 
  160. displays the current graphic name, as well as an image 
  161. of the graphic itself.
  162. As in the Rename Graphic dialog, the edit box where the 
  163. new name is to be typed contains the graphic's current 
  164. name. When the sub-dialog is first opened, the text in 
  165. the edit box is highlighted, and can therefore be 
  166. replaced by typing a new name. This is a normal edit 
  167. box and standard editing keys, such as RIGHT-ARROW, 
  168. LEFT-ARROW, BACKSPACE, and DELETE, can be used to edit its 
  169. contents. A graphic name can be up to five-hundred and 
  170. twelve characters, but extremely long names may not 
  171. entirely show in the edit box. 
  172. As explained in the previous section, the Ignore 
  173. Graphic check box, located to the right of the edit 
  174. box, is used to omit certain graphics when reading with 
  175. outSPOKEN. To turn off a specific icon or symbol, 
  176. select this box when viewing that graphic's dictionary 
  177. entry. When this control is checked, outSPOKEN ignores 
  178. the graphic, and neither navigates to it nor speaks it. 
  179. From within the Edit Graphics Dictionary sub-dialog, 
  180. this control can be toggled on and off with the hotkey 
  181. combination ALT-I. The Ignore Graphic setting can be 
  182. overridden by turning on the Verbose Graphics option in 
  183. the outSPOKEN Graphics Preferences sub-dialog (Section 
  184. 5.1.3).
  185. The Previous and Next buttons display the previous and 
  186. next dictionary entries, respectively. Which entry is 
  187. "previous" and which is "next" is determined by 
  188. outSPOKEN according to the bitmap of the graphic. The 
  189. Previous and Next buttons can be used to browse through 
  190. each entry in the current dictionary, as well as all 
  191. entries of unnamed graphics. The Previous and Next 
  192. buttons can be selected with the hotkey combinations 
  193. ALT-P and ALT-N, respectively.
  194. The Find button in the Edit Graphics Dictionary sub-
  195. dialog is used to locate specific dictionary entries, 
  196. or unnamed graphics. When this button is pressed, an 
  197. extremely simple sub-dialog is produced. Contained in 
  198. this Find Graphic sub-dialog are an edit box, an OK 
  199. button, and a Cancel button. From within the Edit 
  200. Graphics Dictionary sub-dialog, a shortcut for 
  201. selecting the Find Graphic sub-dialog is provided by 
  202. the hotkey combination ALT-F.
  203. When the Find Graphic sub-dialog opens, the name of the 
  204. graphic to be searched for can be typed into the empty 
  205. edit box. To start the search, press oENTER or select 
  206. OK. Select Cancel to abort the search and return to the 
  207. current dictionary entry. 
  208. Find Graphic is only able to locate entries that 
  209. exactly match the request. Capitalization does not 
  210. matter, but spaces and punctuation must be typed 
  211. correctly. If Find Graphic is unable to locate a 
  212. request, it behaves as if Cancel had been pressed, 
  213. closing the Find Graphic sub-dialog and returning to 
  214. the current entry in the Edit Graphic Dictionary sub-
  215. dialog. If the requested entry is located, the Find 
  216. Graphic sub-dialog is closed and the newly found entry 
  217. is displayed in the Edit Graphics Dictionary sub-
  218. dialog.
  219. When searching for unnamed pointers, icons, or symbols 
  220. using the Find Graphic sub-dialog, be sure to include a 
  221. space before the graphic's number. As explained in the 
  222. introduction to this section, unnamed graphics are each 
  223. assigned a unique number until named by the user. When 
  224. outSPOKEN assigns a number to an unknown graphic, the 
  225. name is of the form Icon-space-number. It is important 
  226. to include the space because Find Graphic can only 
  227. locate graphics that exactly match the name that is 
  228. typed. Since all unnamed graphics are locatable from 
  229. the Edit Graphic Dictionary sub-dialog, this is an 
  230. alternative to using the Rename Graphic dialog. 
  231. To rename a pointer, enter the Edit Graphics Dictionary 
  232. sub-dialog and use Previous, Next, or Find to locate 
  233. the desired pointer. This is the only way to rename a 
  234. pointer, because the usual method of naming graphics 
  235. (by placing the pointer on them and invoking the Rename 
  236. Graphic dialog) will not work for a pointer. Unnamed 
  237. pointers are numbered in the same way icons and symbols 
  238. are, but are called cursors (e.g., "cursor 1"). 
  239. There are two ways to exit from the Edit Graphics 
  240. Dictionary sub-dialog. Pressing the Done button closes 
  241. the sub-dialog and returns to the Rename Graphic 
  242. dialog. When this button is pressed, all dictionary 
  243. modifications are immediately saved to disk. Selecting 
  244. the Close option from the Control menu discards any 
  245. changes made to the current entry and closes the 
  246. dialog. This saves all entries except the current one 
  247. to the dictionary, and returns to the Rename Graphic 
  248. dialog. Effectively, this provides a method of exiting 
  249. the dialog without saving changes to the current 
  250. dictionary entry. However, when the dialog is closed in 
  251. this way, changes that were made to any graphics 
  252. besides the current one will be saved.
  253. Please note that pressing Cancel from the 
  254. Rename Graphic dialog does NOT undo any 
  255. changes made in the Edit Graphics Dictionary 
  256. sub-dialog.
  257. 5.2.3    More About Graphics Dictionaries
  258. Graphics dictionaries are files which contain 
  259. information about a graphic's name, bitmap, and Ignore 
  260. Graphic status. Each such set of information about an 
  261. individual graphic is called an "entry," and a 
  262. dictionary can contain any number of entries. Each 
  263. dictionary has the file extension ".DIC", and is 
  264. located in the outSPOKEN directory (usually C:\OSW). 
  265. Unless otherwise specified, all new graphic names are 
  266. stored in the default dictionary, "DEFAULT.DIC". If you 
  267. are a beginner, there is no need to be overly concerned 
  268. about how graphics dictionaries operate. It is enough 
  269. to know that these files contain the images and names 
  270. of the graphics you define in the Rename Graphic 
  271. dialog. Advanced users may wish to read the following 
  272. two sub-sections for more information about graphics 
  273. dictionaries. 
  274. 5.2.3.1    Managing Dictionaries
  275. When outSPOKEN is launched, it searches the outSPOKEN 
  276. directory for dictionary files and loads them into 
  277. memory. This means that adding or removing a dictionary 
  278. is as simple as moving a dictionary file into, or out 
  279. of, the outSPOKEN directory. Graphics dictionaries are 
  280. saved to disk at several times: when exiting outSPOKEN, 
  281. when leaving the Rename Graphic dialog or the Edit 
  282. Graphics Dictionary dialog, and when exiting Windows. A 
  283. graphics dictionary can be prevented from loading by 
  284. deleting it or by changing the file extension to 
  285. something other than ".DIC". This can be done from File 
  286. Manager or from DOS. Dictionaries can be added simply 
  287. by copying a dictionary file into the outSPOKEN 
  288. directory. If a dictionary is added to or deleted from 
  289. the outSPOKEN directory while the program is running, 
  290. outSPOKEN must be restarted before the change takes 
  291. effect. 
  292. outSPOKEN must have at least one graphics dictionary to 
  293. work with. When it launches, outSPOKEN looks for a 
  294. dictionary called "DEFAULT.DIC". If this file is not 
  295. found, outSPOKEN creates an empty file with that name. 
  296. This guarantees that when the user wishes to name a 
  297. graphic, there is a dictionary in which to save it. 
  298. This file is also offered as the default dictionary 
  299. when naming a graphic which has not yet been saved.
  300. The best way to create a new graphics dictionary is to 
  301. remove or rename the current default dictionary and 
  302. restart outSPOKEN. outSPOKEN automatically creates a 
  303. new default dictionary. A group of new graphics, such 
  304. as from a new application, can then be defined and 
  305. stored in it. Once these new graphics have been saved 
  306. in the default dictionary, the dictionary can be 
  307. renamed (in File Manager or DOS) to some other 
  308. dictionary name. The next time outSPOKEN is launched, 
  309. an empty default dictionary will again be created. 
  310. Following this procedure, groups of related icons and 
  311. symbols from specific applications can be kept in 
  312. individual graphics dictionaries and shared with other 
  313. outSPOKEN users. For example, we provide a dictionary 
  314. called "WORD.DIC", which is a file containing all of 
  315. the graphics found in Microsoft Word. Although we 
  316. provide graphics dictionaries for some applications, it 
  317. would be impossible to support all of them. For this 
  318. reason, we encourage the sharing of dictionaries via 
  319. electronic bulletin boards, anonymous FTP, and any 
  320. other means available.
  321. 5.2.3.2    Dictionary Restrictions
  322. A graphic can be stored in only one dictionary at a 
  323. time, and a particular image can have only one name. 
  324. When loading dictionaries, if outSPOKEN comes across a 
  325. graphic that has been defined in an earlier dictionary 
  326. (i.e., a dictionary loaded earlier in the startup 
  327. process), the definition in the later dictionary 
  328. replaces the older entry. The next time outSPOKEN makes 
  329. a change to the dictionaries on disk, it deletes the 
  330. entry from the earlier dictionary. This ensures that 
  331. only one definition exists for any given graphic.
  332. For this reason one should be careful when adding new 
  333. dictionaries to the outSPOKEN directory. If a new 
  334. dictionary is added which has definitions for graphics 
  335. that are defined in previously existing dictionaries, 
  336. any graphic names defined in dictionaries which load 
  337. earlier than the new dictionary will be replaced by the 
  338. new definitions. If you then quit outSPOKEN, the 
  339. previously defined names will be permanently removed 
  340. from the original dictionaries. This makes it a good 
  341. idea to make regular backups of all important graphics 
  342. dictionaries. 
  343. Graphics dictionaries are loaded by outSPOKEN in their 
  344. order of appearance in a DOS directory list. From DOS, 
  345. typing the command "DIR C:\OSW\*.DIC" will display the 
  346. dictionary file names in their loading order. If you 
  347. have installed outSPOKEN to a directory other than 
  348. "C:\OSW", substitute the proper drive letter and path 
  349. name in the command line above.
  350. Although a graphic can have only one name, there can be 
  351. any number of different graphics possessing the same 
  352. name. This means that several different graphics (even 
  353. graphics which look completely different) can have the 
  354. same label. For example, suppose there were two icons, 
  355. one of a dog and one of a cat. If the user labeled both 
  356. icons "Dog," outSPOKEN would have no objection, even 
  357. though one of the icons is, in fact, a cat.
  358. It is important to note that when outSPOKEN assigns a 
  359. name to a graphic, it is doing so for a specific bit 
  360. depth (number of colors). When the bit depth is 
  361. changed, a previously named graphic appears to 
  362. outSPOKEN as a new image. outSPOKEN has not forgotten 
  363. the previous label, it simply needs a label for the new 
  364. bitmap. Because outSPOKEN allows multiple graphics to 
  365. share the same name, renaming the bitmap in the new bit 
  366. depth solves the problem. When you return to the 
  367. previous bit depth, the previously assigned name 
  368. returns. It is often a good idea to maintain different 
  369. dictionaries for different bit depths. This allows the 
  370. flexibility of removing unused high bit depth 
  371. dictionaries to make more memory available and to speed 
  372. up outSPOKEN's startup process.